package com.jivam.lottery.util;

import java.text.SimpleDateFormat;
/**
 * 常量
 * @author Jivam
 */
public interface Constants {
	//SYSTEM CONSTANTS
	Integer MAX_PERIOD = 60;//系统和公式保存的最大期数
	Integer MAX_SHOW_PERIOD = 20;//期数面板显示的期数
	Integer MAX_FORMULA_DATA_SIZE = 20;//公式数据保存的期数
	Integer IMPORT_MIN_PERIOD = MAX_PERIOD+MAX_FORMULA_DATA_SIZE;
	String VERSION = "V1.41";
	String DATA_VERSION = "V1.4";
	//SYSTEM TITLE MESSAGE
	String TOOL_CALCULATE = "彩票算码工具";
	String TOOL_ANALYSE = "彩票统计工具";
	String LOTTERY_TOOL = "彩票工具集";
	String AUTHOR_NAME = " - By Jivam";
	//SYSTEM DATA KEY
	String KEY_DATA_VERSION = "DataVersion";
	String KEY_ALL_PERIOD_NUM = "AllPeriodNum";
	String KEY_PERIOD_NUM = "PeriodNum";
	String KEY_FORMULA = "Formula";
	String KEY_NUMS = "Nums";
	String KEY_FORMULA_MAP = "FormulaMap";
	String KEY_A = "A";
	String KEY_B = "B";
	String KEY_C = "C";
	String KEY_D = "D";
	String KEY_E = "E";
	String KEY_F = "F";
	String KEY_G = "G";
	String KEY_AD = "AD";
	String KEY_BD = "BD";
	String KEY_AB = "AB";
	String KEY_AC = "AC";
	String KEY_BC = "BC";
	String KEY_CD = "CD";
	String KEY_KD = "KD";
	String KEY_SUM = "SUM";
	String[] KEY_NUM = {KEY_A, KEY_B, KEY_C, KEY_D,
			KEY_AD, KEY_BD, KEY_AB, KEY_AC, KEY_BC, KEY_CD, KEY_KD};//期数统计中要统计的项目
	String KEY_ANALYSE_WIDTH = "analyseWidth";
	String KEY_ANALYSE_HEIGHT = "analyseHeight";
	//KEYFORMULA左右项表达式符号
	String KEY_FORMULA_LEFT_FLAG = "_";
	String KEY_FORMULA_RIGHT_FLAG = "=";
	//FORMULA MAPPING 表达式符号
	String KEY_FORMULA_MAP_LEFT_FLAG = "@";
	String KEY_FORMULA_MAP_RIGHT_FLAG = ",";
	//FORMULA VARIABLE
	String FORMULA_A = "a";
	String FORMULA_B = "b";
	String FORMULA_C = "c";
	String FORMULA_D = "d";
	String FORMULA_E = "e";
	String FORMULA_F = "f";
	String FORMULA_G = "g";
	String FORMULA_HE = "he";
	String FORMULA_KD = "kd";
	//SYSTEM DATA FILE PATH
	String PATH_DIR = System.getProperty("user.dir")+System.getProperty("file.separator");
	String PATH_DATASAVE = "lottery.data";
	String PATH_LOG = "lottery.log";
	String PATH_CALRESULT = "ma.txt";
	String PATH_PERIOD = "periods.txt";
	String PATH_FORMULA = "formula.txt";
	String PATH_NOTE = "note.txt";
	//SYSTEM DATA CALCULATOR
	int POSTION_A = 0;
	int POSTION_B = 1;
	int POSTION_C = 2;
	int POSTION_D = 3;
	int POSTION_E = 4;
	int POSTION_F = 5;
	int POSTION_G = 6;
	int POSTION_SUM = 7;
	int POSTION_KD = 8;
	//SYSTEM UTIL CLASS
	SimpleDateFormat YMDHMS = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
	//PANEL TITLE
	String LABEL_PERIOD = "期";
	String LABEL_HEAD = "头";
	String LABEL_END = "尾";
	String LABEL_SUM	= "和";
	String LABEL_FORMULA_PREFIX = "F";
	
	String[] TITLE_PERIODPANEL = {LABEL_PERIOD,LABEL_SUM,KEY_A, KEY_B, KEY_C, KEY_D, KEY_E, KEY_F, KEY_G};
	//PANEL SIZE
	int SIZE_PANEL_COLS = MAX_FORMULA_DATA_SIZE + 1;
	
	//CALCULATOR PER FORMULA PANEL SIZE
	int CALCULATOR_FORMULA_SIZE = 7;
}
